package com.learn.mybatisjdbc.service;

import com.learn.mybatisjdbc.dao.UserJDBCDao;
import com.learn.mybatisjdbc.pojo.User;

import java.util.List;

public class UserJDBCService {
    private UserJDBCDao userJDBCDao;

    public UserJDBCService(UserJDBCDao userJDBCDao){
        this.userJDBCDao = userJDBCDao;
    }

    public List<User> findUserList(int age){
        return userJDBCDao.findUserListByGtAge(age);
    }
}
